package com.yjt.fresh.adpater;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yjt.fresh.R;
import com.yjt.fresh.bean.BeanHomePage;
import com.yjt.fresh.bean.BeanMyPoints;

import java.util.List;

/**
 * 我的积分
 * Created by mcc on 2018/6/10.
 */

public class AdpRvAtyMyScore extends BaseQuickAdapter<BeanMyPoints, BaseViewHolder> {
    public AdpRvAtyMyScore(int layoutResId, @Nullable List<BeanMyPoints> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BeanMyPoints item) {
        TextView tvOrderNum = helper.getView(R.id.tvAppRecycleItemMyScoreOrderNum);
        TextView tvPoints = helper.getView(R.id.tvAppRecycleItemMyScorePoints);
        TextView tvTime = helper.getView(R.id.tvAppRecycleItemMyScoreTime);

        tvOrderNum.setText("订单号："+item.getORDERID());
        tvPoints.setText(item.getPOINTBLANCE());
        tvTime.setText(item.getCREATETIME());
    }
}
